/**
 * @title: InstanceVO
 * @projectName mscloud
 * @Description TODO
 * @Author
 * @Date 2022/3/10 10:51
 */
package com.atguigu.springcloud.cloudsentinelgatewaydevelop.bean.dto.vo;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class InstanceVO {
    /**
     * instance ip.
     */
    private String ip;

    /**
     * instance port.
     */
    private int port;

    /**
     * instance weight.
     */
    private double weight = 1.0D;

    /**
     * instance health status.
     */
    private boolean healthy = true;

    /**
     * If instance is enabled to accept request.
     */
    private boolean enabled = true;

    /**
     * If instance is ephemeral.
     *
     * @since 1.0.0
     */
    private boolean ephemeral = true;

    /**
     * cluster information of instance.
     */
    private String clusterName;

    /**
     * Service information of instance.
     */
    private String serviceName;

    /**
     * user extended attributes.
     */
    private Map<String, String> metadata = new HashMap<String, String>();


}
